package net.huashitong.ssydt.provider.common.service;


import net.huashitong.ssydt.common.entity.SsCommonBanner;
import net.huashitong.ssydt.provider.common.mapper.SsCommonBannerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.09.28
 */
@Service
@Transactional
public class SsCommonBannerServiceImpl implements SsCommonBannerService {

    private SsCommonBannerMapper mapper;

    @Autowired
    public SsCommonBannerServiceImpl(SsCommonBannerMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SsCommonBanner record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(SsCommonBanner record) {
        return mapper.insertSelective(record);
    }

    @Override
    public SsCommonBanner selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SsCommonBanner record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SsCommonBanner record) {
        return mapper.updateByPrimaryKey(record);
    }

    @Override
    public List<SsCommonBanner> findOrderSequenceAsc() {
        return mapper.findOrderSequenceAsc();
    }
}
